/*
 * ListRemoteObjects.java
 *
 * Created on June 17, 2007, 7:42 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package SRMI.RemotingServices;

/**
 * This is a command-line tool to list the existing set of objects advertised by the localhost
 * @author meemo
 */
public class ListRemoteObjects
{
    
    /** Creates a new instance of ListRemoteObjects */
    public ListRemoteObjects()
    {
    }
    
    public static void main(String[] args) throws Exception
    {
        for(String s : CommonUtils.getRmiRegistry(CommonUtils.registryPortNumber).list())
            System.out.println(s);
    }
    
}
